﻿/**
 * 小程序配置文件
 */

// 此处主机域名是腾讯云解决方案分配的域名
// 小程序后台服务解决方案：www.qcloud.com/solution/la

var host = "http://localhost:61341";
var config = {
  // 下面的地址配合云端 Server 工作
  host,
  appId: "wxb13f1f472d44116a",
  appSecret: "e232ba725e59b96ff1affececda6944f",
  appLogo: "/images/lottery_guide.png",
  appName: "抽奖指南",
  appVersion: "V1.0",
  appContact: "15118183337",
  appEmail: "vip@aczn.vip",
  defaultCover: "/images/default.png",
  qqmapKey: 'NM3BZ-4ACK4-NJMUG-XFIAV-K2LD7-5WFDG',
  mchId: '1278485301',
  mchKey: 'E0FD4274F9984A64BC27C2727ED8EB4F',
  // 登录地址，用于建立会话
  loginUrl: `${host}/api/user/post`,
  // 获取用户数据
  getUserUrl: `${host}/api/user/get/`,
  //获取基础数据
  baseUrl: `${host}/api/Activity/GetBaseDate`,
  //发布活动
  pushUrl: `${host}/api/Activity/InitActivity`,
  //上传图片
  uploadImgUrl: `${host}/api/Activity/UploadFile`,
  //上传图文
  uploadRichUrl: `${host}/api/Activity/UploadGraphic`,
  //首页
  homeUrl: `${host}/api/Activity/GetHome`,
  //获取活动列表
  activityListUrl: `${host}/api/Activity/GetActivityList`,
  //获取活动详情
  activityUrl: `${host}/api/Activity/GetActivity`,
  //参与活动
  joinUrl: `${host}/api/Activity/JoinActivity`,
  //我参与的
  joinListUrl: `${host}/api/Activity/GetJoinActivity`,
  //我发布的
  pushListUrl: `${host}/api/Activity/GetMyActivity`,
  //我中奖的
  winListUrl: `${host}/api/Activity/GetWinActivity`,
  //获取积分明细
  pointsListUrl: `${host}/api/Points/GetPoints`,
  //积分规则
  ruleUrl: `${host}/api/Points/GetPointsRule`,
  pointsListUrl: `${host}/api/Points/GetPoints`,
  //参加活动用户
  activityUserUrl: `${host}/api/Activity/GetJoinActivityUser`,
  //是否中奖
  isLuckyUrl: `${host}/api/Activity/IsLucky`,
  //获取当天还能否发起
  canPushUrl: `${host}/api/Activity/GetRemaining`,
  //获取中奖者名单
  luckyUserUrl: `${host}/api/Activity/GetLuckUser`,
  //验证兑换码
  verifyUrl: `${host}/api/Activity/ValiDateyCode`,
  //奖品核销
  exchangeUrl: `${host}/api/Activity/UseExchangeCode`,
  //重新推荐
  setHomeUrl: `${host}/api/Activity/SetHome`,
  //添加积分/签到
  addPointsUrl: `${host}/api/Points/AddPoints`,
  //添加积分
  setAddressUrl: `${host}/api/Activity/SetAddress`,
  //生成分享二维码
  buildShareUrl: `${host}/api/Activity/BuildShare`,
  //获取购买模式
  vipModelUrl: `${host}/api/Payment/GetVipModels`,
  //购买
  paymentUrl: `${host}/api/Payment/Post`,
  //支付回调
  payCallbackUrl: `${host}/api/Payment/PayCallback`,
};

module.exports = config